//
//  LYLogin.h
//  game
//
//  Created by naffan on 12-11-18.
//  Copyright (c) 2012年 naffan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIFormDataRequest.h"
#import "LYConstants.h"
#import "JSON.h"
#import "FMDatabase.h"
#import "sqlite3.h"
#import "LYDb.h"

@interface LYLogin : NSObject
{
    FMDatabase *db;
    FMResultSet *rs;
    NSUserDefaults* userDefault;
    LYDb *lydb;
}
-(BOOL)isLogined;
-(BOOL) logOut;
-(BOOL)logIn:(NSString*) username password:(NSString*) value;
-(BOOL)registerUser:(NSString*) username password:(NSString*) value;
-(NSString*)twiceConfirm:(NSInteger*) uid sid:(NSInteger*) value;
-(id)findpassword;
-(NSString*)getRegisterName;

@end
